import request from '@/utils/request'

/** @name 用户列表 **/
export function getUserListAPI (params) {
  return request({
    url: '/user/list',
    method: 'get',
    params
  })
}

/** @name 添加用户 **/
export function addUserAPI (data) {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

/** @name 编辑用户 **/
export function editUserAPI (data) {
  return request({
    url: '/user/edit',
    method: 'post',
    data
  })
}

/** @name 删除用户 **/
export function deleteUserAPI (data) {
  return request({
    url: '/user/delete',
    method: 'delete',
    data
  })
}

/** @name 简易用户列表 **/
export function getEasyUserListAPI () {
  return request({
    url: '/user/easyList',
    method: 'get'
  })
}
